// @ts-ignore
/* eslint-disable */
import { request } from '@umijs/max';
const apiPrefix = '/web';

/** 簇实时电流曲线 GET /health/current/cluster */
export async function currentControllerGetClusterCurrentData(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.currentControllerGetClusterCurrentDataParams,
  options?: { [key: string]: any },
) {
  return request<API.CurrentDiffData>(`${apiPrefix}/health/current/cluster`, {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 电池堆放电过程中最大电流差曲线 GET /health/current/max */
export async function currentControllerGetMaxCurrentData(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.currentControllerGetMaxCurrentDataParams,
  options?: { [key: string]: any },
) {
  return request<API.CurrentInfo>(`${apiPrefix}/health/current/max`, {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}
